package cn.mavor.day0903;

public class prime10000 {
    public static void main(String[] args){
        int count = 0;
        int num = 10000;
        while(count < 10){
            if(isPrime(num)){
                count++;
                System.out.println(num + " ");
            }
            num++;
        }
    }

    private static boolean isPrime(int n){
        for(int i = 2; i<= Math.sqrt(n); i++){
            if(n%i==0){
                return false;
            }
        }return true;
    }
}
